package main.java.tmi.actualStockList.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import main.java.tmi.actualStockList.service.ActualStockListVO;
import main.java.tmi.common.service.impl.AbstractDao;

import org.springframework.stereotype.Repository;

/**
 * ActualStockList Data Access Object
 *
 * @author min™
 * @since 2012. 05. 08.
 */
@Repository
public class ActualStockListDAO extends AbstractDao {
	
	/**
	 * ActualStockList search
	 * @return List<ActualStockListVO>
	 * @throws SQLException 
	 */
	@SuppressWarnings("unchecked")
	public List<ActualStockListVO> getActualStockListView(Map<String,String> param) throws SQLException {
				
		return (List<ActualStockListVO>) list("ActualStockListDAO.getActualStockListView", param);
	}
	
	/**
	 * ActualStockList search
	 * @return List<ActualStockListVO>
	 * @throws SQLException 
	 */
	public int getActualStockListViewCount(Map<String,String> param) throws SQLException {
		return Integer.parseInt((String) getSqlMapClientTemplate().queryForObject("ActualStockListDAO.getActualStockListViewCount", param));
	}
}
